<?php
// *** Tangra (Application Framework and Tools for PHP)
//  $Id$
//

require_once(TANGRA_MAIN_DIR.'core/config_loader_file.class.php');

class TPLE_Smarty_Config_Loader_File extends Config_Loader_File {
	public function get_tple_type() {
		return $this->get_conf_value('TPLE_TYPE');
	}


	public function get_smarty_lib_path() {
		return tangra_normalize_path($this->get_conf_value('SMARTY_LIB_PATH'));
	}


	public function get_cache_dir() {
		return $this->get_conf_value('SMARTY_CACHE_PATH');
	}

	public function get_compile_dir() {
		return $this->get_conf_value('SMARTY_COMPILE_PATH');
	}

	public function get_config_dir() {
		return $this->get_conf_value('SMARTY_CONFIG_PATH');
	}

	public function get_tpl_dir() {
		return $this->get_conf_value('SMARTY_TEMPLATE_PATH');
	}

	public function get_caching() {
		return $this->get_conf_value('SMARTY_CACHE_ON');
	}

	public function get_additional_plugins_directories() {
		$ret = array();

		$list = trim($this->get_conf_value('SMARTY_ADDITIONAL_PLUGINS_DIRECTORIES'));

		if ($list) {
			$arr = explode(',', $list);
			$ret = $arr;
		}

		return $ret;
	}
}

